import request from 'utils/request.js'

// 获取验证码
export function getCodeImg() {
  return request({
    // url: '/captchaImage',
    url: '/captcha/create',
    method: 'get',
    timeout: 20000
  })
}

// 登录方法
export function login(data) {
  return request({
    url: '/login/login',
    method: 'post',
    data
  })
}

// 获取个人简介资料
export function getUserProfile() {
  return request({
    url: '/person/getInfo',
    method: 'get'
  })
}
